#include<bits/stdc++.h>
#define int long long 
using namespace std;

const int maxn=2e6+10;
int n, k;
int a[maxn];

void solve(){
	cin >> n >> k;
	for(int i = 1; i <= n; i ++) cin >> a[i];
	int ans = 0;
	for(int i = 1; i <= n; i ++)
	{
		while(a[i])
		{
			ans += a[i] % k;
			a[i] /= k;
		}
	}
	if(ans % 2 == 1) cout << "Alice";
	else cout << "Bob";
}


signed main(){
	ios::sync_with_stdio(0), cin.tie(0),cout.tie(0);
	solve();
	return 0;
}
